<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .text{
            background-image: url(timg.jpg);
            width: 16px;
            height: 16px;
            position: absolute;
            right: 0;top: 11px;
        }
        .input{
            display: inline-block;
            width: 180px;
            height: 30px;
            padding-right: 20px;
        }
    </style>
</head>
<body>
    <div style="width: 200px;height: 30px;position: relative;">
        <input  class="input" type="text"/>
        <span class="text"></span>
    </div>

</body>
</html>